package 设计模式.q_访问者模式;

/**
 * 
 * 指挥官
 * 
 * @author caihe
 * @date 2023/3/21 16:27
 */
public class Commander extends Unit {
    
    public Commander(Unit... children) {
        super(children);
    }

    @Override
    public void accept(UnitVisitor unitVisitor) {
        unitVisitor.visit(this);
        super.accept(unitVisitor);
    }
}
